<html>
<head>
<title>用户登陆</title>
{% include "systy.html" %}
<style>
.collapse input {border:none;background:none;outline:none;}
</style>
</head>

<body>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">UMeWork</a>
        </div>
        <div class="navbar-collapse collapse">  
        {% if username %}
            <div class="navbar-right">
            
                <a class="navbar-brand"> 欢迎你：{{username}}</a>
                <a class="btn btn-warning btn-sm login_logout " href="logout.html">退出</a>
            
            </div>
        {%else%}
        <form class="navbar-form navbar-right" role="form" method="post">
            <div class="form-group">
                <span class="form-control">{{fr.username}}</span>
            </div>
            <div class="form-group">
                <span class="form-control">{{fr.password}}</span>
            </div>
            <button type="submit" class="btn btn-success">Sign in</button>
        </form>
        {% endif %}

        </div>
      </div>
    </div>

    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
      <div class="container">
        <p>&nbsp;</p>
        <h2>工具简介：</h2>
        <p class="login_inden"> UMeWork是一个开源的运维工具，用Python+Django开发而成。功能主要包括：主机信息管理，代码上线，命令执行，任务工单系统,系统服务管理等，更多更强功能正在开发中……</p>
        {% if username %}
            <p><a class="btn btn-primary btn-lg" role="button" href="host.html">进入信息中心</a></p>
        {%else%}
            </p>
            <p class="btn btn-lg btn-primary login_info" disabled="disabled"> 进入信息中心</p>
        {% endif %}
      </div>
    </div>

    <div class="container">
      <!-- Example row of columns -->
      <div class="row">
        <div class="col-md-5 login_div">
          <h2>部门公告</h2>
        <p>
        <table class ="font_login">
            <tr>
                <td width="420" class="login_td">部门本周会议议程安排</td>
                <td width="80" class="login_td">2013-11-20</td>
            </tr>
            <tr>
                <td width="420" class="login_td">运维规章制度</td>
                <td width="80" class="login_td">2013-11-19</td>
            </tr>
            <tr>
                <td width="420" class="login_td">代码上线流程规范</td>
                <td width="80" class="login_td">2013-11-11</td>
            </tr>
            <tr>
                <td width="420" class="login_td">运维部门11月会议安排</td>
                <td width="80" class="login_td">2013-11-01</td>
            </tr>
            <tr>
                <td width="420" class="login_td">部门本周会议议程安排</td>
                <td width="80" class="login_td">2013-10-27</td>
            </tr>
            <tr>
                <td width="420" class="login_td">运维与开发部门合作交流会</td>
                <td width="80" class="login_td">2013-10-20</td>
            </tr>
            <tr>
                <td width="420" class="login_td">公司运维部门与腾讯运维部门交谈会</td>
                <td width="80" class="login_td">2013-10-07</td>
            </tr>
            <tr>
                <td width="420" class="login_td">运维部门上月奖金已发放</td>
                <td width="80" class="login_td">2013-10-02</td>
            </tr>
            <tr>
                <td width="420" class="login_td">运维部门绩效考核制度</td>
                <td width="80" class="login_td">2013-09-22</td>
            </tr>
            <tr>
                <td width="420" class="login_td">部门本周会议议程安排</td>
                <td width="80" class="login_td">2013-09-12</td>
            </tr>

            
        </table>
        </p>
         <p><a {% if username %} {% else %}disabled="disabled" {% endif %} class="btn btn-default login_left_more" href="" role="button">more &raquo;</a></p>
        </div>
        <div class="col-md-5 login_div">
          <h2>任务列表</h2>
          <p>
            <table class ="font_login font_a">

            {% for i in Tasklist %}
            <tr>
                <td width="50" class="login_td">{{i.id}}</td>
                
                {% if username %}
                    <td width="500" class="login_td"><a href="/mytask/{{ i.id }}.html">{{i.task_name|truncatechars:25 }}</a></td> 
                {% else %} 
                    <td width="500" class="login_td">{{ i.task_name|truncatechars:25 }}</td> 
                {% endif %}
                <td width="105" class="login_td">
                {% ifequal i.task_status "0" %}
                    <label class="label label-danger">等待处理</label>
                {% endifequal%}
                {% ifequal i.task_status "1" %}
                    <label class="label label-success">正在处理</label>
                {% endifequal%}
                {% ifequal i.task_status "2" %}
                    <label class="label label-default">处理完成</label>
                {% endifequal%}
                
                
                </td>
            </tr>
            {% endfor %}

            </table>
          </p>
          <p><a {% if username %}{% else %} disabled="disabled" {% endif %} class="btn btn-default login_right_more" href="/taskinfo.html" role="button">more &raquo;</a></p>
       </div>
      </div>

      <hr>

      <footer>
        <p class="font_login login_p">&copy; Company 2013 UMeWork 由 江江 开发与维护  </p>
        <p class="font_login login_p">联系：Email:63780668@qq.com  博客：<a href="http://www.linuxyw.com">http://www.linuxyw.com</a> 请用chrome浏览器</p>"
      </footer>
    </div>
</body>
</html>

